﻿<UserControl x:Class="Spenta.StreetCare.Silverlight.UserControls.PreLoadUserControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" xmlns:ViewModels="clr-namespace:Spenta.StreetCare.Silverlight.MVVM.ViewModels" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <UserControl.Resources>
        <ViewModels:PreLoadViewModel x:Key="PreLoadViewModel" />
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" DataContext="{StaticResource PreLoadViewModel}" Width="Auto" Height="Auto" Background="#99000000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  Visibility="{Binding LoadingVisibility}" >
        <controlsToolkit:BusyIndicator
                    IsBusy="True"
                    DisplayAfter="0"
                    BusyContent="Retrieving information from server. Please wait...">
            <ContentControl>
            </ContentControl>
        </controlsToolkit:BusyIndicator>
    </Grid>
</UserControl>
